package com.tianshu.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tianshu.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liaojie
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_apply_proc")
public class TApplyProc extends BaseEntity {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String bankCode;

    private String version;

    private String createUserId;

    private LocalDateTime createTime;

    private String updateUserId;

    private LocalDateTime updateTime;

    /**
     * 申请件编码
     */
    private String applyNo;

    /**
     * 当前阶段
     */
    private String stageCode;

    /**
     * 当前处理结果
     */
    private Integer result;

    /**
     * 关联的流程ID
     */
    private String procInstId;

    /**
     * 标识是否结束流程，Y/N
     */
    private String endFlag;

    /**
     * 结果代码
     */
    private String resultCode;

    /**
     * 是否已重审
     */
    private String isReiterate;

    /**
     * 任务件类型 0普通,1重审件
     */
    private String taskType;

    /**
     * 原申请编号
     */
    private String oldApplyNo;

    /**
     * 退件类型 0不是,1是
     */
    private Integer returnType;


    public static final String ID = "id";

    public static final String BANK_CODE = "bank_code";

    public static final String VERSION = "version";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER_ID = "update_user_id";

    public static final String UPDATE_TIME = "update_time";

    public static final String APPLY_NO = "apply_no";

    public static final String STAGE_CODE = "stage_code";

    public static final String RESULT = "result";

    public static final String PROC_INST_ID = "proc_inst_id";

    public static final String END_FLAG = "end_flag";

    public static final String RESULT_CODE = "result_code";

    public static final String IS_REITERATE = "is_reiterate";

    public static final String TASK_TYPE = "task_type";

    public static final String OLD_APPLY_NO = "old_apply_no";

    public static final String RETURN_TYPE = "return_type";

}
